package com.song.service;

import com.song.mapper.GametypeMapper;
import com.song.pojo.Gametype;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class GametypeService {
    @Resource
    private GametypeMapper gametypeMapper;

    @Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
    public Gametype queryBytypeId(Integer typeId){
        return gametypeMapper.selectByPrimaryKey(typeId);
    }
}
